home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / setwpos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  484 b   |  25 lines

  1. /*
  2. ** setwpos.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <stdio.h>
  9. #include "pictor.h"
  10.  
  11.  
  12. /*
  13. ** Sets the write position for the current window pane.
  14. */
  15. void setwpos(int row,int column)
  16. {
  17.     if(_PL_winhead != NULL) {
  18.         _CURR_WPANE.row = (row > 0) ? (row - 1) : 0;
  19.         _CURR_WPANE.column = (column > 0) ? (column - 1) : 0;
  20.         if(_PL_winhead->style & WO_TEXTCURSOR)
  21.             wsynccurs();
  22.     }
  23.  
  24. } /* setwpos */
  25.